package com.example.zy.vote1.mapper;

import com.example.zy.vote1.bean.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    User findByName(@Param("name") String name,@Param("pwd") String pwd);
    int insert(@Param("name") String name, @Param("age") Integer age);
    List<User> getUserListByPage(@Param("page") Integer page, @Param("limit") Integer limit);
}
